function mapToObj(strMap) {
	let obj = {};
	for (let [k, v] of strMap) {
		obj[k] = v;
	}
	return obj;
}

function objToMap(obj) {
	let strMap = new Map();
	for (let k of Object.keys(obj)) {
		strMap.set(k, obj[k]);
	}
	return strMap;
}